Set of male/female (sealing) crimp on connectors. Put some tape and then heat shrink tubing over the crimp ends where the wire enters the connectors to make sure that side is well sealed too.
Never had any issues either. As I recall the actual sensor has no grounding point, the shield just runs to the sensor but doesn't actually ground to the engine block there.